<?php
namespace Admin\Controller;

class ProjectHisverController extends AbstractController {
	
	protected $From;

	public function _initialize(){
		$this->Form = D('Projecthisver');
    }
    
    public function index(){
    	$id = (int)I('id');
    	$this->assign("projectID",$id);
    	$res = $this->Form->MyshowList();
		$this->assign("list",$res['list']);
    	$this->assign("page",$res['page']);
    	$this->display("Project/ProjectHisver/index");
    }

	public function compare(){
		if(I('id')){
			$res = $this->Form->Myshow(array("ID"=>I('id')));
			$Snapshot = unserialize($res['Snapshot']);
			$this->assign("data",$Snapshot);
		}
		$this->display("Project/ProjectHisver/compare");
	}
	
	public function table(){
		$this->display("Project/ProjectExpert/table");
	}
	

}